﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl" %>
<%
    if (Request.IsAuthenticated) {
%>
        欢迎您， <b><%= Html.Encode(Page.User.Identity.Name) %></b>!
        [ <%= Html.ActionLink("Log Off", "LogOff", "Account") %> ]
<%
    }
    else {
%>
欢迎您，请
        [ <%= Html.ActionLink("登录", "LogOn", "Account") %> ] [<%=Html.ActionLink("免费注册", "Register","Account")%>]
<%
    }
%>
